/**
 * 
 */
package com.cipe.cmrs.service;

import java.util.List;

import com.cipe.cmrs.exception.InsecurePasswordException;
import com.cipe.cmrs.model.User;

/**
 * @author Incepio
 * 
 */

public interface UserService {
    User saveUser(User user, Integer userId) throws InsecurePasswordException;

    List<User> findAllByOrderByFullName();

    List<User> getActiveAndDefaultUsersByOrderByFullName();

    List<User> findAll();

    boolean changePassword(User user) throws InsecurePasswordException;

    User merge(User user);

    List<User> findAllOrderBy(String columnName);

    User getUserByLoginName(String loginName);

    User getUserById(Integer id);
}
